{$e->getMessage()}
HTML; http_response_code(500); exit(1); } // Geo IP $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); $geoIp = $bootstrap->getObjectManager()->create('GraphicAudio\GeoIp\Model\GeoIpManager'); $storeCode = $geoIp->getStoreCode(); $params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = $storeCode; $params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website'; // End Geo IP $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params); /** @var \Magento\Framework\App\Http $app */ $app = $bootstrap->createApplication(\Magento\Framework\App\Http::class); $bootstrap->run($app);